//
//  DTViewModelClass.swift
//  Architecture
//
//  Created by tianXin on 2017/9/14.
//  Copyright © 2017年 田鑫. All rights reserved.
//

import Foundation

public typealias ReturnValueBlock = (_ returnValue: Any) -> ()
public typealias ErrorCodeBlock   = (_ errorCode: Any) -> ()
public typealias FailureBlock     = () -> ()

public class DTViewModelClass {

    public var ReturnBlock: ReturnValueBlock! = nil
    public var ErrorBlock: ErrorCodeBlock!    = nil
    
    public func setBlock(_ ReturnValueBlock: @escaping ReturnValueBlock, ErrorCodeBlock: @escaping ErrorCodeBlock) {
      ReturnBlock = ReturnValueBlock
      ErrorBlock  = ErrorCodeBlock
    }
}
